import pygame
import sys
from pygame.locals import *
background = pygame.image.load("images/background.png").convert()
def run_game():
    pygame.init()
    bg_size = width, height = 480, 700
    screen = pygame.display.set_mode(bg_size)
    pygame.display.set_caption("玩个球啊！")
    bg_color=(230,230,230)
    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()
        screen.fill(bg_color)
        pygame.display.flip()
run_game()


if __name__ == "__main__" :
    try:
        main
    except SystemExit :
        pass
    except:
        traceback.print_exc()
        input
